package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.util.Date;

public class CouponRecords implements Serializable {
    private Integer id;

    /**
     * token
     *
     * @mbg.generated
     */
    private String token;

    /**
     * 商品id
     *
     * @mbg.generated
     */
    private Integer productId;

    /**
     * 领取时间
     *
     * @mbg.generated
     */
    private Date receiveTime;

    /**
     * 到期时间
     *
     * @mbg.generated
     */
    private Date overdueTime;

    /**
     * 时长
     *
     * @mbg.generated
     */
    private Integer durationTime;

    /**
     * 来源（h5/app）
     *
     * @mbg.generated
     */
    private String source;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getOverdueTime() {
        return overdueTime;
    }

    public void setOverdueTime(Date overdueTime) {
        this.overdueTime = overdueTime;
    }

    public Integer getDurationTime() {
        return durationTime;
    }

    public void setDurationTime(Integer durationTime) {
        this.durationTime = durationTime;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", token=").append(token);
        sb.append(", productId=").append(productId);
        sb.append(", receiveTime=").append(receiveTime);
        sb.append(", overdueTime=").append(overdueTime);
        sb.append(", durationTime=").append(durationTime);
        sb.append(", source=").append(source);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}